package com.kamistoat.meimeichat.meimeichatserverapplication.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kamistoat.meimeichat.meimeichatserverapplication.common.utils.PageUtils;
import com.kamistoat.meimeichat.meimeichatserverapplication.common.utils.Query;

import com.kamistoat.meimeichat.meimeichatserverapplication.dao.MmcUserFriendDao;
import com.kamistoat.meimeichat.meimeichatserverapplication.entity.MmcUserFriendEntity;
import com.kamistoat.meimeichat.meimeichatserverapplication.service.MmcUserFriendService;


@Service("mmcUserFriendService")
public class MmcUserFriendServiceImpl extends ServiceImpl<MmcUserFriendDao, MmcUserFriendEntity> implements MmcUserFriendService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MmcUserFriendEntity> page = this.page(
                new Query<MmcUserFriendEntity>().getPage(params),
                new QueryWrapper<MmcUserFriendEntity>()
        );

        return new PageUtils(page);
    }

}